package spring.chatroom.java_chatroom.model.util;

import spring.chatroom.java_chatroom.common.utils.MailUtil;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ChatMemoryMap {
    //sessionId  memoryId
    static ConcurrentHashMap<Integer, Integer> memory;

    public ChatMemoryMap() {
        memory = new ConcurrentHashMap<>();
    }

    public static void put(Integer key, Integer value) {
        memory.put(key, value);
    }

    public static Integer get(Integer key) {
        return memory.get(key);
    }
}
